package com.flying.pas.security.model;

import java.util.Date;

import com.flying.framework.data.Data;
import com.flying.framework.annotation.Param;
import com.flying.framework.data.DataSerializable;
import com.flying.framework.annotation.Property;
import com.flying.framework.metadata.Meta;

@SuppressWarnings("serial")
@Meta(id="t_role",title="角色", table="t_role", primaryKeys={"role_id"})
public class Role extends Data implements DataSerializable {
	public final static String ENTITY_NAME = "t_role";
	
	public final static String CREATE_TIME = "create_time";
	public final static String CREATOR = "creator";
	public final static String NAME = "name";
	public final static String ROLE_CODE = "role_code";
	public final static String REMARKS = "remarks";
	public final static String ROLE_ID = "role_id";
	public final static String UPDATE_TIME = "update_time";
	public final static String UPDATOR = "updator";
	
	@Param(value=ROLE_ID,   required=true,   maxlength=0,	desc="角色ID" , 
		generator="com.flying.pas.model.Role.roleId", 
		props= {@Property(name="type",value="hidden")})
	private Long roleId;
	
	@Param(value=NAME,   required=false,   maxlength=50,	desc="角色名称" )
	private String name;
	
	@Param(value=ROLE_CODE,   required=false,   maxlength=50,	desc="角色代码" )
	private String roleCode;
	
	@Param(value=REMARKS,   required=false,   maxlength=200,	desc="说明" )
	private String remarks;
	
	@Param(value=CREATE_TIME,   required=false,   maxlength=0,	desc="创建时间" )
	private Date createTime;
	
	@Param(value=CREATOR,   required=false,   maxlength=100,	desc="创建人" )
	private String creator;
	
	@Param(value=UPDATE_TIME,   required=false,   maxlength=0,	desc="修改时间" )
	private Date updateTime;
	
	@Param(value=UPDATOR,   required=false,   maxlength=100,	desc="修改人" )
	private String updator;
	
	
	public Date getCreateTime() {
		return this.createTime;
	}
	
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	public String getCreator() {
		return this.creator;
	}
	
	public void setCreator(String creator) {
		this.creator = creator;
	}
	
	public String getName() {
		return this.name;
	}
	
	public void setName(String name) {
		this.name = name;
	}

	public String getRoleCode() {
		return roleCode;
	}

	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}

	public String getRemarks() {
		return this.remarks;
	}
	
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	
	public Long getRoleId() {
		return this.roleId;
	}
	
	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}
	
	public Date getUpdateTime() {
		return this.updateTime;
	}
	
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	public String getUpdator() {
		return this.updator;
	}
	
	public void setUpdator(String updator) {
		this.updator = updator;
	}
	

}